    public final static int DK_NUM0 = 1 << 0;
    public final static int DK_NUM1 = 1 << 1;
    public final static int DK_NUM2 = 1 << 2;
    public final static int DK_NUM3 = 1 << 3;
    public final static int DK_NUM4 = 1 << 4;
    public final static int DK_NUM5 = 1 << 5;
    public final static int DK_NUM6 = 1 << 6;
    public final static int DK_NUM7 = 1 << 7;
    public final static int DK_NUM8 = 1 << 8;
    public final static int DK_NUM9 = 1 << 9;
    public final static int DK_POUND = 1 << 10;
    public final static int DK_STAR = 1 << 11;
    public final static int DK_PAD_LEFT = 1 << 12;
    public final static int DK_PAD_RIGHT = 1 << 13;
    public final static int DK_PAD_UP = 1 << 14;
    public final static int DK_PAD_DOWN = 1 << 15;
    public final static int DK_PAD_MIDDLE = 1 << 16;
    public final static int DK_SOFT_LEFT = 1 << 17;
    public final static int DK_SOFT_RIGHT = 1 << 18;

    // game key constants, used in game to drive events
    public final static int GK_UPLEFT = DK_NUM1;
    public final static int GK_UPRIGHT = DK_NUM3;
    public final static int GK_DOWNLEFT = DK_NUM7;
    public final static int GK_DOWNRIGHT = DK_NUM9;
    public final static int GK_FLYINGLEFT = DK_NUM4 | DK_PAD_LEFT;
    public final static int GK_FLYINGRIGHT = DK_NUM6 | DK_PAD_RIGHT;   
    public final static int GK_LEFT = DK_NUM4 | DK_NUM7 | DK_PAD_LEFT;
    public final static int GK_RIGHT = DK_NUM6 | DK_NUM9 | DK_PAD_RIGHT;
    public final static int GK_UP = DK_NUM2 | DK_PAD_UP;
    public final static int GK_DOWN = DK_NUM8 | DK_PAD_DOWN;
    public final static int GK_CENTER = DK_NUM5 | DK_PAD_MIDDLE;
    public final static int GK_LEFTRIGHT = GK_LEFT | GK_RIGHT;
    public final static int GK_AUTOPLAY = DK_STAR;
    public final static int GK_DEBUG = DK_POUND;

    public final static int GK_CHEAT1 = DK_NUM0;
    public final static int GK_CHEAT2 = DK_NUM8;
    public final static int GK_CHEAT3 = DK_NUM2;
    public final static int GK_CHEAT4 = DK_NUM3;
// #if ConfirmFuncKey == "leftSoft"
//     public final static int GK_BACK = DK_SOFT_RIGHT;
//     public final static int GK_CONFIRM = DK_SOFT_LEFT;
// #else
    public final static int GK_BACK = DK_SOFT_LEFT;
    public final static int GK_CONFIRM = DK_SOFT_RIGHT;
// #endif

    public final static int GK_MENU = GK_CONFIRM;
    public final static int GK_SELECT = DK_NUM5 | DK_PAD_MIDDLE | GK_CONFIRM;
    public final static int GK_ANY_NUM = DK_NUM1 | DK_NUM2 | DK_NUM3 | DK_NUM4 |
        DK_NUM5 | DK_NUM6 | DK_NUM7 | DK_NUM8 | DK_NUM9 | DK_NUM0;
    public final static int GK_ANY_LETTER = DK_NUM2 | DK_NUM3 | DK_NUM4 |
        DK_NUM5 | DK_NUM6 | DK_NUM7 | DK_NUM8 | DK_NUM9;

